package com.yunhe.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SecurityController {

    @RequestMapping("index")
    public String viewsIndex(){
        return "index";
    }
    @RequestMapping("login")
    public String viewsLogin(){
        return "views/login";
    }
    @RequestMapping("level1/{id}")
    public String viewsLevel1(@PathVariable("id") int id){
        return "views/level1/"+id;
    }
    @RequestMapping("level2/{id}")
    public String viewsLevel2(@PathVariable("id") int id){
        return "views/level2/"+id;
    }
    @RequestMapping("level3/{id}")
    public String viewsLevel3(@PathVariable("id") int id){
        return "views/level3/"+id;
    }
}
